package robotfacade;

import robotparts.RobotBody;
import robotparts.RobotColor;
import robotparts.RobotMetal;

/**
 * Created by DELL
 * Date: 2019/10/9.
 * Time: 16:20
 */
public class RobotFacade {
    RobotBody robotBody;
    RobotColor robotColor;
    RobotMetal robotMetal;

    public RobotFacade() {
        robotBody = new RobotBody();
        robotColor = new RobotColor();
        robotMetal = new RobotMetal();
    }

    public void ConstructRobot(String color, String metal){
        System.out.println("\nCreation of the Robot Start");
        robotColor.setColor(color);
        robotMetal.setMetal(metal);
        robotBody.createBoby();
        System.out.println("\nRobot Creation End");
    }
}
